/**
 * 
 */
package org.sunnyleaf.votedemo.client.data;

import java.io.Serializable;
import java.util.List;


/**
 * @author Administrator
 *
 */
@SuppressWarnings("serial")
public class LoginResponse implements Serializable{

	private boolean isLoggedIn = false; 	// 登没登录
	private String loginURL; 				// 没登录的话转到loginURL
	private String logoutURL; 				// 登出的URL 
	private String nickName;				// User里的
	private String email;
	
	/**
	 * @gwt.typeArgs <java.lang.Boolean>
	 */
	private List<Boolean> votedFlag;		// 参加的投票是否已投过
	/**
	 * @gwt.typeArgs <org.sunnyleaf.votedemo.client.data.Vote>
	 */
	private List<Vote> participatedVotes;  // 第一页，显示参加的投票
	
	/**
	 * @gwt.typeArgs <org.sunnyleaf.votedemo.client.data.Vote>
	 */
	private List<Vote> ownedVotes; //第二页，发起的投票
	
	public LoginResponse(){
		
	}

	public boolean isLoggedIn() {
		return isLoggedIn;
	}

	public void setLoggedIn(boolean isLoggedIn) {
		this.isLoggedIn = isLoggedIn;
	}

	public String getLoginURL() {
		return loginURL;
	}

	public void setLoginURL(String loginURL) {
		this.loginURL = loginURL;
	}

	public String getLogoutURL() {
		return logoutURL;
	}

	public void setLogoutURL(String logoutURL) {
		this.logoutURL = logoutURL;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public List<Vote> getParticipatedVotes() {
		return participatedVotes;
	}

	public void setParticipatedVotes(List<Vote> participatedVotes) {
		this.participatedVotes = participatedVotes;
	}

	public List<Vote> getOwnedVotes() {
		return ownedVotes;
	}

	public void setOwnedVotes(List<Vote> ownedVotes) {
		this.ownedVotes = ownedVotes;
	}

	public void setVotedFlag(List<Boolean> votedFlag) {
		this.votedFlag = votedFlag;
	}

	public List<Boolean> getVotedFlag() {
		return votedFlag;
	}
	
	
}
